<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<title>账号登陆</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="renderer" content="webkit">
		<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css">
		<link rel="shortcut icon" href="favicon.ico">
		<link rel="stylesheet" href="./css/登录.css" />
	</head>
	<body>
		  <!-- 警告框 -->
		  <div class="alert info-box">
		    操作结果
		  </div>
<!-- 		<div class="max">
			由于技术限制，请勿输入真实信息(如手机号，身份证号，相关密码)，防止信息泄露！！
		</div> -->
		<!-- 登录头部 -->
		<div class="xtx_logo_head">
			<div class="logo"></div>
			<a class="home" href="./index.html">进入网站首页</a>
		</div>
		<!-- 登录内容 -->
		<div class="xtx-login-main">
			<div class="wrapper">
				<form action="">
					<div class="box">
						<div class="tab-nav">
							<a href="javascript:;" class="active" data-id="0">账户登录</a>
							<a href="javascript:;" data-id="1">二维码登录</a>
						</div>
						<div class="tab-pane">
							<div class="link">
								<a href="javascript:;">手机验证码登录</a>
							</div>
							<div class="input">
								<span class="iconfont icon-zhanghao"></span>
								<input required type="text" placeholder="请输入用户名称/手机号码" name="username">
							</div>
							<div class="input">
								<span class="iconfont icon-suo"></span>
								<input required type="password" placeholder="请输入密码" name="password">
							</div>
							<div class="agree">
								<label for="my-checkbox">
									<input type="checkbox" value="1" id="my-checkbox" class="remember" name="agree">
									<span class="iconfont icon-xuanze"></span>
								</label>
								我已同意 <a href="javascript:;">《服务条款》</a href="javascript:;"> 和 <a>《服务条款》</a>
							</div>
							<div class="button clearfix">
								<button type="submit" class="dl" >登 录</button>
								<!-- <a class="dl" href="./center.html">登 录</a> -->
								<a class="fl" href="./forget.html">忘记密码？</a>
								<a class="fr" href="./注册.html">免费注册</a>
							</div>
						</div>
						<div class="tab-pane" style="display: none;">
							<h3 class="tmp_liuyan">扫码加好友代写网页</h3>
							<img class="code" src="./img/images/背景.png" alt="">
						</div>
					</div>
				</form>
			</div>
		</div>
		<div class="zw">
			默认账号和密码 123456
		</div>
		<script src="js/alert.js"></script>
		<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/js/bootstrap.min.js"></script>
		<script src="js/登录.js"></script>
		
		<script>
			//获取从注册界面传过来的数据，并渲染
			//让他只运行一次，刷新页面 数据消失
			
			const tmp_zh = document.querySelector('[name=username]')
			const tmp_mm = document.querySelector('[name=password]')
			function dfs(){
				const ans_zh = localStorage.getItem('id')
				const ans_mm = localStorage.getItem('id_mima')
				tmp_zh.value = ans_zh
				tmp_mm.value = ans_mm
				localStorage.removeItem('id')
				localStorage.removeItem('id_mima')
			}
			if(localStorage.getItem('id'))
				dfs()
		</script>
	</body>
</html>